package logic

import (
	"context"

	"modbus/rpcServer/internal/svc"
	"modbus/rpcServer/types/iotrpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type GetDeviceTableLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewGetDeviceTableLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetDeviceTableLogic {
	return &GetDeviceTableLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *GetDeviceTableLogic) GetDeviceTable(in *iotrpc.DeviceReq) (*iotrpc.DeviceReply, error) {
	// todo: add your logic here and delete this line

	return &iotrpc.DeviceReply{}, nil
}
